-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mahmoud/eng 3111 integrate with stacks raw hex signing on extension #652
Mahmoud/eng 3111 integrate with stacks raw hex signing on extension #652
Conversation
β¦ntegrate-with-stacks-raw-hex-signing-on-extension
β¦ntegrate-with-stacks-raw-hex-signing-on-extension
src/app/components/transactionsRequests/ContractCallRequest.tsx
Outdated
Show resolved
Hide resolved
Conflicts: package-lock.json package.json src/app/screens/confirmFtTransaction/index.tsx src/app/screens/confirmStxTransaction/index.tsx src/app/screens/sendFt/index.tsx src/app/screens/signatureRequest/index.tsx src/app/screens/swap/useAlexSponsoredTransaction.ts src/app/screens/transactionRequest/helper.ts src/common/types/message-types.ts
src/inpage/sats.inpage.ts
Outdated
@@ -30,7 +30,7 @@ const isValidEvent = (event: MessageEvent, method: SatsConnectMessageToContentSc | |||
return correctSource && correctMethod && !!data.payload; | |||
}; | |||
|
|||
const SatsMethodsProvider: BitcoinProvider = { | |||
const SatsMethodsProvider: Partial<BitcoinProvider> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious what was the reasoning for Partial here? π
do we want to hide type errors when we forget to add a new method from sats-connect? π€
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in my case, the version of sats-connect that we had in package.json
was ahead of what was merged in develop
at the time we might not want to keep it though, it's necessary now so the build doesn't fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I see. I'd be keen to remove it before merge, since it was a good code hint before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-aboelenein did you have a chance to follow up on this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch i reverted that change π
import { decodeToken } from 'jsontokens'; | ||
import { useLocation } from 'react-router-dom'; | ||
|
||
const useStxTransactionRequest = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to have a return type here. related to the core code review on txPayloadToRequest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an issue with strictly typing this hook since the types that are exposed from the @stacks/connect
lib have errors with the types themselves so until that's resolved loosely typing here is our only solution.
I will open an issue on the @stacks/connect
repo and add a follow-up issue.
β¦ntegrate-with-stacks-raw-hex-signing-on-extension
β¦ntegrate-with-stacks-raw-hex-signing-on-extension
β¦ntegrate-with-stacks-raw-hex-signing-on-extension
@@ -10,11 +10,10 @@ | |||
"@ledgerhq/hw-transport-webusb": "^6.27.13", | |||
"@phosphor-icons/react": "^2.0.10", | |||
"@react-spring/web": "^9.6.1", | |||
"@secretkeylabs/xverse-core": "6.0.1", | |||
"@stacks/connect": "^6.10.2", | |||
"@stacks/encryption": "4.3.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we currently still include @stacks/encryption
in webpack/webpack.config.js
, so I think it would make sense to remove it from there as well
Will be picked up for testing, after a comment gets resolved |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
π PR Type
What kind of change does this PR introduce?
π Background
This PR introduces support for signing a transaction hex, which is parsed and displayed for the user for signing this enables stx multisig transactions
Issue Link: #ENG-3111
π Changes
related core pr: secretkeylabs/xverse-core#285
β Review checklist
Please ensure the following are true before merging: